﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;


namespace Kugar.Core.Communications.FileTransfer
{
    public class FileTransferStruct
    {
        
    }

    public class TransferInfo
    {
        public Guid MainSessionID;
        public int Type;

        /// <summary>
        ///     任务的名称,如果是文件传输,则为文件名+扩展名,如果为文件夹传输,则为文件夹名称
        /// </summary>
        public string Name; 
    }

    public class SteamBeginRequest
    {
        public Guid MainSessionID;
        public Guid SubSessionID;
        public string  Path;
        public int FileSize;
    }

    public class SteamBeginResponse
    {
        public bool IsAllow;
    }

    public class Noop
    {
        public int i;
    }

    public class SteamTransferCancel
    {
        public SteamTransferCancel()
        {
            IsCancel = false;
        }

        public bool IsCancel;
    }

    public enum TransferType
    {
        File,
        Directory
    }
    
}
